<extend name="Public/base" />

<block name="style">

</block>

<block name="body">

	<!-- 弹窗插件 -->
    <include file="Public:artdialog" />

     <div class="row">
        <div class="col-md-12">
            <div class="block-web">
				<!-- 商品列表 -->
				<form action="{:U('incomesRecordsList')}" method="post" onsubmit="return false" id="SearchFrom">
				        <div class="bgmain">
				        	<div class="header">
			                    <div class="actions_diy">
			                    </div>
			                    <h3 class="content-header">货款流水记录</h3>
			                </div>
<!-- 				           <ul class="nav nav-tabs">
						      <li > <a href="#">账户信息</a></li>
						      <li ><a href="#">充值</a></li>
						      <li><a href="#">提现</a></li>
						      <li class="active"><a href="#">交易记录</a></li>
						    </ul>   -->
		                    <div class="block-web" style="margin: 0;padding:10px 20px 0px 0px;">
		                        <div class="porlets-content">
		                            <div class="row" style="margin-left:-25px;">
		                                <div class="col-md-12" style="padding-left:0px;">
		                                    <div class="search_pannl_div">
		                                        <table class="search_table">
		                                            <tbody>
		                                                <tr>
		                                                    <td class="single-col" >
		                                                        <label>收款方式：</label>
		                                                       	<select id="gathering_way" name="gathering_way">
		                                                       		<option value=''>-全部-</option>
		                                                       		<option value="1">现金</option>
		                                                       		<option value="2">转账</option>
		                                                       	</select>

		                                                       	交易类型：
		                                                       	<select id="transaction_type" name="transaction_type">
		                                                       		<option value=''>-全部-</option>
		                                                       		<option value="1">收款充值</option>
		                                                       		<option value="2">买货扣除</option>
		                                                       		<option value="3">赠款充值</option>
																	<option value="4">红冲</option>
		                                                       		<option value="5">退款充值</option>
		                                                       	</select>
															        时间(开始)
															        <input name="start_time" readonly="readonly" class="laydate-icon" style="width: 160px;padding: 0px;height: 20px;" type="text" id="start_time" size="15">
															        &nbsp;&nbsp;
															        时间(结束)
															        <input name="end_time" readonly="readonly" class="laydate-icon" style="width: 160px;padding: 0px;height: 20px;" type="text" id="end_time" size="15">

		                                                          关键词：<input style="width:305px;" type="text" id="keywords" name="keywords" placeholder="输入用户登录帐号、手机、流水号、收款人查找" value="{$keywords}">
		                                                        <button type="button" class="btn btn-success" formtarget="SearchFrom" id="searchBtn" onclick="goSearch('#searchBtn','load_tb_div')"><i class="fa fa-search"></i> 搜索</button>
		                                                        <button type="button" class="btn btn-default" onclick="$('input[type=text]').val(['']);$('select').val('');goSearch('#searchBtn','load_tb_div');"> 查看所有</button>
		                                                    </td>
		                                                </tr>
		                                            </tbody>
		                                        </table>
		                                    </div>
		                                </div>
		                            </div>
		                        </div>
		                    </div>
					    </div>


				<div id="load_tb_div" style="padding:0px 0px 30px ;">
				</div>

				<script>
				 	$(function () {
				        _load_html_byurl("{:U('incomesRecordsList')}", "load_tb_div");
				    });

				</script>
              </form>
			   </div>
            </div><!--/porlets-content-->
        </div><!--/block-web-->
    <!--/col-md-12-->

</block>

<block name="script">
<script type="text/javascript" src="/plugins/laydate/laydate.dev.js"></script>
<script>
	laydate({
	    elem: '#start_time',
	    festival: true, //显示节日
	    istime: true,
	    format: 'YYYY-MM-DD',
		max:laydate.now(),
	});
	laydate({
	    elem: '#end_time',
	    festival: true, //显示节日
	    istime: true,
	    format: 'YYYY-MM-DD',
		max:laydate.now(),
	});

	<if condition='!empty($keywords)'>
			$(function(){
				goSearch('#searchBtn','load_tb_div');
				$('#keywords').attr('readonly','readonly').css('background-color','rgb(202, 202, 202)');

			});

	</if>
</script>
</block>